WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::TreeManagerSlidingWindowDualRate Class Reference

Sliding window with two rates: all the recent keyframes are kept, and only one of each rate_old_frames_ in the older part (merging the motion captures of the removed ones) More...

#include <core/tree_manager/tree_manager_sliding_window_dual_rate.h>

Inheritance diagram for wolf::TreeManagerSlidingWindowDualRate:
[legend]

Public Member Functions

 ~TreeManagerSlidingWindowDualRate () override
 
void keyFrameCallback (FrameBasePtr _frame) override
 Manages the wolf tree when a new keyframe is created. More...
 
- Public Member Functions inherited from wolf::TreeManagerSlidingWindow
 ~TreeManagerSlidingWindow () override
 
void keyFrameCallback (FrameBasePtr _frame) override
 Manages the wolf tree when a new keyframe is created. More...
 
- Public Member Functions inherited from wolf::TreeManagerBase
virtual ~TreeManagerBase ()
 Destructor. More...
 
virtual void keyFrameCallback (FrameBasePtr _key_frame)=0
 Manages the wolf tree when a new keyframe is created. More...
 
bool hasChildren () const override
 Returns whether the node has children in the Wolf tree. More...
 
- Public Member Functions inherited from wolf::NodeBase
 NodeBase (const std::string &_category, const std::string &_type="Undefined", const std::string &_name="")
 Constructor. More...
 
virtual ~NodeBase ()=default
 Destructor. More...
 
unsigned int nodeId () const
 Returns the node id, unique over the whole Wolf tree. More...
 
std::string getCategory () const
 Returns the category of the node. More...
 
std::string getType () const
 Returns the type (subcategory) of the node. More...
 
std::string getName () const
 Returns the name of the node. More...
 
bool isRemoving () const
 Returns whether the node is being removed. More...
 
virtual bool hasChildren () const =0
 Returns whether the node has children in the Wolf tree. More...
 
void setType (const std::string &_type)
 Sets the type (subcategory) of the node. More...
 
void setName (const std::string &_name)
 Sets the name of the node. More...
 
ProblemConstPtr getProblem () const
 Returns the problem the node belongs to. More...
 
ProblemPtr getProblem ()
 Returns the problem the node belongs to. More...
 

Protected Attributes

unsigned int count_frames_
 Counter of keyframes, modulo rate_old_frames_. More...
 
unsigned int n_frames_recent_
 Number of keyframes of the recent part of the window. More...
 
unsigned int rate_old_frames_
 One of each rate_old_frames_ keyframes is kept in the older part of the window. More...
 
- Protected Attributes inherited from wolf::TreeManagerSlidingWindow
unsigned int n_frames_
 Number of keyframes of the window. More...
 
unsigned int n_fix_first_frames_
 Number of first keyframes of the window that are fixed. More...
 
bool viral_remove_parent_without_children_
 Whether to remove parents left without children. More...
 
- Protected Attributes inherited from wolf::NodeBase
ProblemWPtr problem_ptr_
 Problem the node belongs to. More...
 
unsigned int node_id_
 Node id. It is unique over the whole Wolf Tree. More...
 
std::string node_category_
 Text label identifying the category of node ("SENSOR", "FEATURE", etc) More...
 
std::string node_type_
 Type or subcategory of node (derived class name: "SensorOdom2d", etc) More...
 
std::string node_name_
 
bool is_removing_
 A flag for safely removing nodes from the Wolf tree. See remove(). More...
 

Additional Inherited Members

- Protected Member Functions inherited from wolf::TreeManagerSlidingWindow
 TreeManagerSlidingWindow (const YAML::Node &_params)
 Constructor from YAML parameters. More...
 
- Protected Member Functions inherited from wolf::TreeManagerBase
 TreeManagerBase (const std::string &_type, const YAML::Node &_params)
 Constructor from the derived class name and the YAML parameters. More...
 
- Protected Member Functions inherited from wolf::NodeBase
virtual void setProblem (ProblemPtr _prob_ptr)
 Sets the problem the node belongs to. More...
 

Detailed Description

Sliding window with two rates: all the recent keyframes are kept, and only one of each rate_old_frames_ in the older part (merging the motion captures of the removed ones)

Constructor & Destructor Documentation

◆ ~TreeManagerSlidingWindowDualRate()

wolf::TreeManagerSlidingWindowDualRate::~TreeManagerSlidingWindowDualRate ( )
inlineoverride

Member Function Documentation

◆ keyFrameCallback()

void wolf::TreeManagerSlidingWindowDualRate::keyFrameCallback ( FrameBasePtr  _key_frame)
overridevirtual

Manages the wolf tree when a new keyframe is created.

Reimplemented from wolf::TreeManagerSlidingWindow.

Member Data Documentation

◆ count_frames_

unsigned int wolf::TreeManagerSlidingWindowDualRate::count_frames_
protected

Counter of keyframes, modulo rate_old_frames_.

◆ n_frames_recent_

unsigned int wolf::TreeManagerSlidingWindowDualRate::n_frames_recent_
protected

Number of keyframes of the recent part of the window.

◆ rate_old_frames_

unsigned int wolf::TreeManagerSlidingWindowDualRate::rate_old_frames_
protected

One of each rate_old_frames_ keyframes is kept in the older part of the window.


The documentation for this class was generated from the following files: